<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数组的增强</title>
</head>
<body>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
    </ul>
</body>
<script>
    arr1 = [1,2,3]
    arr2 = [4,5,6]
    newarr = [...arr1,...arr2]
    console.log(newarr);

    console.log(Math.max(...arr1))

    const list = document.getElementsByTagName('li')
    console.log(Array.from(list));

    function test(){
        console.log(arguments);
        console.log(Array.from(arguments));
    }
    test(1,2,3,4)

    console.log(Array.of(1,2,3));

    res = arr1.find(function(item){
        console.log(item)
        return item>2
    })

    console.log(res)
</script>
</html>